package club.cearnach.api.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author 阮胜
 * @date 2018/5/20 13:06
 */
@Data
public class NewsDTO {
    private Integer id;

    @NotBlank
    private String title;

    @NotBlank
    private String content;

    private String imageFileName;

    private Date createDate;

    private MultipartFile imageFile;
}
